package com.yonyou.cyxdms.sysAuth.service.service;


import com.yonyou.cyx.framework.service.base.ICommonService;
import com.yonyou.cyxdms.sysAuth.service.dto.ConsultantWorkDTO;
import com.yonyou.cyxdms.sysAuth.service.entity.ConsultantWorkPO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author tanjie
 * @since 2019-08-14
 */
public interface ConsultantWorkService extends ICommonService<ConsultantWorkDTO, ConsultantWorkPO, Long> {

    Map<String, Integer> getWorkConsultantByDealerCode(String dealerCode);

    Map<String, Integer> getWorkConsultantRatioByDealerCode(String dealerCode);

    Integer updateConsultantClues(String consultId, Integer num);

    Integer updateConsultWorkTime(String consultId, List<Integer> workDay);

    Integer updateConsultRatio(HashMap<String, Integer> map);

    List<Map<String, Object>> consultantWorkInfo();

    Boolean updateConsult(ConsultantWorkDTO consultantWorkDTO);

    List<Map<String, String>> consultantWorkNotAllotInfo(String consultId);

    Boolean delConsultWorkById(String consultId);

    Boolean addConsultWork(ConsultantWorkDTO consultantWorkDTO);
}
